package com.wxyzz.satserver.message.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;
@Data

public class Message {

 private int messageId;
 private int fromId;
 private String fromName;
 private int sessionId;
 private String content;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
 private LocalDateTime postTime;
}
